package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公共基础字段对象 sys_common_data_property
 * 
 * @author ruoyi
 * @date 2021-10-31
 */
public class SysCommonDataProperty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 中文名称 */
    @Excel(name = "中文名称")
    private String nameZh;

    /** 英文名称 */
    @Excel(name = "英文名称")
    private String nameEn;

    /* 知识库查询字段 */
    @TableField(exist = false)
    private String searchNameEn;

    /** 字段长度 */
    private Long fieldLength;

    /** 数据类型 */
    private Long dataTypeId;

    @TableField(exist = false)
    private String dataTypeName;

    /** 关联字典类 */
    private Long dictId;

    /** 是否多值 */
    @Excel(name = "是否多值")
    private String multiValued;

    /** 是否必填 */
    @Excel(name = "是否必填")
    private String required;

    /** 是否建立索引 */
    @Excel(name = "是否建立索引")
    private String indexed;

    /** 是否内容存储 */
    @Excel(name = "是否内容存储")
    private String stored;

    /** 是否分词 */
    @Excel(name = "是否分词")
    private String participle;

    /** 排序 */
    private Long sort;

    /** 是否普通检索字段 */
    @Excel(name = "是否普通检索字段")
    private String generalSearchField;

    /** 是否高级检索字段 */
    @Excel(name = "是否高级检索字段")
    private String advancedSearchField;

    /** 是否分面字段 */
    @Excel(name = "是否分面字段")
    private String faceted;

    /** 是否标红字段 */
    @Excel(name = "是否标红字段")
    private String highlightingField;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNameZh(String nameZh) 
    {
        this.nameZh = nameZh;
    }

    public String getNameZh() 
    {
        return nameZh;
    }
    public void setNameEn(String nameEn) 
    {
        this.nameEn = nameEn;
    }

    public String getNameEn() 
    {
        return nameEn;
    }

    public String getSearchNameEn() {
        return searchNameEn;
    }

    public void setSearchNameEn(String searchNameEn) {
        this.searchNameEn = searchNameEn;
    }

    public void setFieldLength(Long fieldLength)
    {
        this.fieldLength = fieldLength;
    }

    public Long getFieldLength() 
    {
        return fieldLength;
    }
    public void setDataTypeId(Long dataTypeId) 
    {
        this.dataTypeId = dataTypeId;
    }

    public Long getDataTypeId() 
    {
        return dataTypeId;
    }

    public String getDataTypeName() {
        return dataTypeName;
    }

    public void setDataTypeName(String dataTypeName) {
        this.dataTypeName = dataTypeName;
    }

    public String getStored() {
        return stored;
    }

    public void setStored(String stored) {
        this.stored = stored;
    }

    public void setDictId(Long dictId)
    {
        this.dictId = dictId;
    }

    public Long getDictId()
    {
        return dictId;
    }
    public void setMultiValued(String multiValued) 
    {
        this.multiValued = multiValued;
    }

    public String getMultiValued() 
    {
        return multiValued;
    }
    public void setRequired(String required) 
    {
        this.required = required;
    }

    public String getRequired() 
    {
        return required;
    }
    public void setIndexed(String indexed) 
    {
        this.indexed = indexed;
    }

    public String getIndexed() 
    {
        return indexed;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setGeneralSearchField(String generalSearchField) 
    {
        this.generalSearchField = generalSearchField;
    }

    public String getGeneralSearchField() 
    {
        return generalSearchField;
    }
    public void setAdvancedSearchField(String advancedSearchField) 
    {
        this.advancedSearchField = advancedSearchField;
    }

    public String getAdvancedSearchField() 
    {
        return advancedSearchField;
    }
    public void setFaceted(String faceted) 
    {
        this.faceted = faceted;
    }

    public String getFaceted() 
    {
        return faceted;
    }
    public void setHighlightingField(String highlightingField) 
    {
        this.highlightingField = highlightingField;
    }

    public String getHighlightingField() 
    {
        return highlightingField;
    }

    public String getParticiple() {
        return participle;
    }

    public void setParticiple(String participle) {
        this.participle = participle;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nameZh", getNameZh())
            .append("nameEn", getNameEn())
            .append("fieldLength", getFieldLength())
            .append("dataTypeId", getDataTypeId())
            .append("dictId", getDictId())
            .append("multiValued", getMultiValued())
            .append("required", getRequired())
            .append("indexed", getIndexed())
            .append("participle", getParticiple())
            .append("sort", getSort())
            .append("generalSearchField", getGeneralSearchField())
            .append("advancedSearchField", getAdvancedSearchField())
            .append("faceted", getFaceted())
            .append("highlightingField", getHighlightingField())
            .toString();
    }
}
